import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { rules } from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '三方平台',
    align: 'center',
    dataIndex: 'tpCarConfigCode_dictText',
  },
  {
    title: '创建时间',
    align: 'center',
    dataIndex: 'createTime',
  },
  {
    title: '日志编号',
    align: 'center',
    dataIndex: 'queryLogNo',
  },
  {
    title: '批次编号',
    align: 'center',
    dataIndex: 'batchQueryNo',
  },
  {
    title: '线索编号',
    align: 'center',
    dataIndex: 'recordNo',
  },
  {
    title: '线索来源',
    align: 'center',
    dataIndex: 'source_dictText',
  },
  {
    title: '手机号',
    align: 'center',
    dataIndex: 'phone',
  },
  {
    title: '城市',
    align: 'center',
    dataIndex: 'city',
  },
  {
    title: "品牌",
    align: "center",
    dataIndex: "brandName"
  },


  {
    title: "车系",
    align: "center",
    dataIndex: "seriesName"
  },


  {
    title: "车型",
    align: "center",
    dataIndex: "specName"
  },


  {
    title: "上牌时间",
    align: "center",
    dataIndex: "firstRegTime"
  },


  {
    title: "里程数",
    align: "center",
    dataIndex: "mileage"
  },
  {
    title: '录入方式',
    align: 'center',
    dataIndex: 'writeMode_dictText',
  },
  {
    title: '任务编号',
    align: 'center',
    dataIndex: 'taskNo',
  },

  {
    title: '三方线索ID',
    align: 'center',
    dataIndex: 'tpCId',
  },
  {
    title: '查询状态',
    align: 'center',
    dataIndex: 'queryStatus_dictText',
  },

  {
    title: '分发状态',
    align: 'center',
    dataIndex: 'qczjDistributeStatus_dictText',
  },
  {
    title: '申诉状态',
    align: 'center',
    dataIndex: 'qczjAppealStatus_dictText',
  },
  {
    title: '过滤通知',
    align: 'center',
    dataIndex: 'qczjFilterateStatus_dictText',
  },
  {
    title: '质检状态',
    align: 'center',
    dataIndex: 'qczjCheckStatus_dictText',
  },
  {
    title: '推送状态',
    align: 'center',
    dataIndex: 'xlbHandleStatus_dictText',
  },
  {
    title: '入库状态',
    align: 'center',
    dataIndex: 'xlbStoreStatus_dictText',
  },
  {
    title: '建单状态',
    align: 'center',
    dataIndex: 'xlbBuildStatus_dictText',
  },
  {
    title: '备注',
    align: 'center',
    dataIndex: 'remark',
  },
];

// 高级查询数据
export const superQuerySchema = {
  queryLogNo: { title: '日志编号', order: 0, view: 'text', type: 'string' },
  batchQueryNo: { title: '批次编号', order: 1, view: 'text', type: 'string' },
  recordId: { title: '线索id', order: 2, view: 'text', type: 'string' },
  recordNo: { title: '线索编号', order: 3, view: 'text', type: 'string' },
  source: { title: '线索来源', order: 4, view: 'sel_user', type: 'string' },
  phone: { title: '手机号', order: 5, view: 'text', type: 'string' },
  city: { title: '城市', order: 6, view: 'text', type: 'string' },
  writeMode: {
    title: '录入方式',
    order: 7,
    view: 'list',
    type: 'string',
    dictCode: 'clue_write_mode',
  },
  taskNo: { title: '任务编号', order: 8, view: 'text', type: 'string' },
  tpCarConfigCode: {
    title: '三方平台',
    order: 9,
    view: 'list',
    type: 'string',
    dictTable: 'clue_tp_car_config',
    dictCode: 'code',
    dictText: 'name',
  },
  tpUsername: { title: '三方用户名', order: 10, view: 'text', type: 'string' },
  tpPassword: { title: '三方密码', order: 11, view: 'text', type: 'string' },
  tpSecretKey: { title: '三方秘钥', order: 12, view: 'text', type: 'string' },
  tpCId: { title: '三方线索ID', order: 13, view: 'text', type: 'string' },
  queryStatus: {
    title: '查询状态',
    order: 14,
    view: 'list',
    type: 'string',
    dictCode: 'clue_query_status',
  },
  remark: { title: '备注', order: 15, view: 'text', type: 'string' },
  qczjDistributeStatus: {
    title: '分发状态',
    order: 16,
    view: 'list',
    type: 'string',
    dictCode: 'qczj_distribute_status',
  },
  qczjAppealStatus: {
    title: '申诉状态',
    order: 17,
    view: 'list',
    type: 'string',
    dictCode: 'qczj_appeal_status',
  },
  qczjFilterateStatus: {
    title: '过滤通知',
    order: 18,
    view: 'list',
    type: 'string',
    dictCode: 'qczj_filterate_status',
  },
  qczjCheckStatus: {
    title: '质检状态',
    order: 19,
    view: 'list',
    type: 'string',
    dictCode: 'qczj_check_status',
  },
  xlbHandleStatus: {
    title: '推送状态',
    order: 20,
    view: 'list',
    type: 'string',
    dictCode: 'xlb_clue_status',
  },
  xlbStoreStatus: {
    title: '入库状态',
    order: 21,
    view: 'list',
    type: 'string',
    dictCode: 'xlb_clue_status',
  },
  xlbBuildStatus: {
    title: '建单状态',
    order: 22,
    view: 'list',
    type: 'string',
    dictCode: 'xlb_clue_status',
  },
};
